
package com.bei_en.teacher.admin.model.user.vo;

import java.util.*;
import com.bei_en.teacher.admin.model.user.bean.UserFinance;
import com.bei_en.teacher.admin.model.BaseVo;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-10-2 19:23:07
 */
public class UserFinanceVo extends BaseVo {

    private UserFinance userFinance;

    public UserFinanceVo() {

    this.userFinance = new UserFinance();
    }

    public UserFinanceVo(UserFinance userFinance) {

    this.userFinance = userFinance;
    }
    
    public UserFinance getUserFinance() {

    return this.userFinance;
    }
    
    public void setUserFinance(UserFinance userFinance) {

    this.userFinance=userFinance;
    }

        public Integer getId() {
            return this.userFinance.getId();
        }
        public void setId(Integer id) {
            this.userFinance.setId(id);
        }
        
        public void setId(Integer value) {
    	this.userFinance.setId(value);
        }
	
    public Integer getId() {
        return this.userFinance.getId();
    }
        
        public void setUserId(Integer value) {
    	this.userFinance.setUserId(value);
        }
	
    public Integer getUserId() {
        return this.userFinance.getUserId();
    }
        
        public void setUserIds(Integer value) {
    	this.userFinance.setUserIds(value);
        }
	
    public Integer getUserIds() {
        return this.userFinance.getUserIds();
    }
        
        public void setOrderId(Integer value) {
    	this.userFinance.setOrderId(value);
        }
	
    public Integer getOrderId() {
        return this.userFinance.getOrderId();
    }
        
        public void setMoney(Double value) {
    	this.userFinance.setMoney(value);
        }
	
    public Double getMoney() {
        return this.userFinance.getMoney();
    }
        
        public void setType(Integer value) {
    	this.userFinance.setType(value);
        }
	
    public Integer getType() {
        return this.userFinance.getType();
    }
        
        public void setSource(Integer value) {
    	this.userFinance.setSource(value);
        }
	
    public Integer getSource() {
        return this.userFinance.getSource();
    }
        
        public void setStatus(Integer value) {
    	this.userFinance.setStatus(value);
        }
	
    public Integer getStatus() {
        return this.userFinance.getStatus();
    }
        
        public void setNote(String value) {
    	this.userFinance.setNote(value);
        }
	@Length(max=255)
    public String getNote() {
        return this.userFinance.getNote();
    }
        
        public void setPaymentNumber(String value) {
    	this.userFinance.setPaymentNumber(value);
        }
	@Length(max=255)
    public String getPaymentNumber() {
        return this.userFinance.getPaymentNumber();
    }
        
        public void setRemaining(Double value) {
    	this.userFinance.setRemaining(value);
        }
	
    public Double getRemaining() {
        return this.userFinance.getRemaining();
    }
        
    public void setCreateTime(Date value) {
        this.userFinance.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getCreateTime() {
	     Integer time=this.userFinance.getCreateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
    


}